<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>修改商铺</title>
    <hdjs/>
    <bootstrap/>
    <css file="__CONTROLLER_VIEW__/css/css.css"/>
    <style type="text/css">
        .checkbox{
             margin-left:5px;
             width:90px;
             margin-top: 10px;
        }
        textarea{
            width: 300px;
            height: 100px;
        }
    </style>
</head>
<body>
<div class="wrap">
    <div class="title-header">修改商铺</div>
    <form action="" method="post" class="form-inline hd-form" enctype="multipart/form-data">
        <table class="table1">
            <tr>
                <th class="w100">商铺名称</th>
                <td class="w100">
                    <input type="text" name="name" class="w200" value="{$oldData.name}"/> 
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">所属分类</th>
                <td>
                    <select name="pid">                 
                    <option value="0">顶级分类</option>
                    <foreach from="$cateData" value="$v">
                       <option value="$v.cid" <if value="$oldData['cid'] eq $v['cid']">selected="selected"</if>>{$v.cname}</option>
                    </foreach>
                    </select>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">所属城市</th>
                <td>
                    <select name="ctid" class="w200">
                        <option value="0">请选择所属地域</option>
                        <foreach from="$cityData" value="$v">
                            <option value="{$v.ctid}" <if value="$oldData['ctid'] eq $v['ctid']">selected="selected"</if>>{$v._name}</option> 
                        </foreach>
                    </select>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">起送价</th>
                <td><input type="text" name="start_price" class="w200" value="{$oldData.start_price}" /></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">配送费(现)</th>
                <td><input type="text" name="sendprice" class="w200" value="{$oldData.sendprice}"/></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">配送费(原)</th>
                <td><input type="text" name="old_sendprice" class="w200" value="{$oldData.old_sendprice}"/></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">平均送餐时间</th>
                <td><input type="text" name="sendtime" class="w200" value="{$oldData.sendtime}"/></td>
                <td></td>
            </tr> 
            <tr>
                <th class="w100">营业时间</th>
                <td>开始:&nbsp;&nbsp;<input type="text" name="startime" class="w200" value="{$oldData.startime}"/></td>
                <td>结束:&nbsp;&nbsp;<input type="text" name="endtime" class="w200" value="{$oldData.endtime}"/></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">店面图</th>
                <td><input type="file" name="store_picture" /></td>
                <td></td>
            </tr>             
            <tr>
                <th class="w100">店铺标签</th>
                <td>                  
                    <foreach from="$tagData" value="$v">
                        <label class="checkbox-inline">
                        {$v.tagname}
                            <input type="checkbox" value="{$v.tid}" name="tagname[]" class="check_input">
                        </label>
                    </foreach>
                </td>
                <td></td>
            </tr>
           <tr>
                <th class="w100">商铺法人</th>
                <td>
                    <input type="text" name="owner" class="w200" value="{$oldData.uid}"/>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">联系电话</th>
                <td>
                    <input type="text" name="phone" class="w200" value="{$oldData.phone}"/>
                </td>
                <td></td>
            </tr>                                
            <tr>
                <th class="w100">商铺地址</th>
                <td>
                     <ueditor name='digest' style='2'  width='300' height='200' content="{$oldData.store_address}"/>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">最近地铁</th>
                <td><input type="text" name="subway_address" class="w200" value="{$oldDate.subway_address}"/></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">店铺公告</th>
                <td>
                    <textarea name="description" id="" cols="30" rows="10">{$oldData.ads}</textarea>
                </td>
                <td></td>
            </tr>
            <tr><td></td><td></td></tr>  
            <tr><td></td><td></td></tr>  
            <tr><td></td><td></td></tr>  
            <tr><td></td><td></td></tr>     
        </table>
        <div class="position-bottom">
            <input type="submit" class="hd-success" value="修改"/>
        </div>
    </form>
</div>
</body>
</html>